package cn.itsource.pethome.basic.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 描述:
 * @date: 2020/8/4 13:16
 * @author: summer
 * version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AjaxResult {
    private Boolean success = true;

    private String msg;

    private Object result;

    public AjaxResult(Boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    /**
     * 功能描述: 登录状态返回结果
     * @param result
     * @return: cn.itsource.pethome.basic.util.AjaxResult
     * @Date: 2020/8/17
     */
    public AjaxResult setResult(Object result){
        this.result = result;
        return this;
    }
}
